<?php
//打开session
session_start();

//设置根目录
if (!defined("WEB_ROOT"))
	define("WEB_ROOT", str_replace("\\", "/", dirname(__FILE__))."/");

//自动载入类文件
function __autoload($classname) {
	$filename = WEB_ROOT."utils/$classname.class.php";
	require_once($filename);
}

//数据库设置
$HOST 			= "localhost";
$NAME 			= "fafh6wi427_user";
$PWD  			= "42831802";
$DB   			= "fafh6wi427_data";

//密码重置设置
$NEWPWD 		= md5("123456");

//分页设置
//每页显示的条数
$PAGE_SIZE		= 20;


//输出编码设置
header("Content-Type: text/html; charset=utf-8");

//设置默认的访问权限1.2.3... (1为最高权限)
if(empty($PAGE_AUTHORITY)){
	$PAGE_AUTHORITY = 2;
}

//页面载入时检查session中是否有正确的用户信息来确保用户的合法、访问权限
require_once WEB_ROOT."action/checkSessionAction.php";
?>